
from core.base import *

class CustomerModel(BaseModel):
	def __init__(self):
		self.name = 'Wyn Cuthbert Manlim'
		self.address = '1234 Example Ave., Manila, Philippines'
		self.contact_number = '0917-654-3210'
		self.note = 'Shipping company owner, repeat customer'

	def get_name(self):
		return self.name

	def set_name(self, name):
		self.name = name

	def get_address(self):
		return self.address

	def set_address(self, address):
		self.address = address

	def get_contact_number(self):
		return self.contact_number

	def set_contact_number(self, contact_number):
		self.contact_number = contact_number

	def get_note(self):
		return self.note

	def set_note(self, note):
		self.note = note


class CustomerController(BaseController):
	def get_all(self):
		customers = []
		customers.append(CustomerModel())

		self.update.emit(customers)
		return customers

	def search_by_name(self, name):
		return []

